package com.zsc.shixun.model.article;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 文章管理VO
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/17
 */
@Data
public class ArticleVO {
    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文件类型")
    private String contentMd;

    @ApiModelProperty(value = "文章具体内容")
    private String content;

    @ApiModelProperty(value = "文章分类（类型）")
    private String categories;

    @ApiModelProperty(value = "文章标签")
    private String tags;

    @ApiModelProperty(value = "阅读量")
    private Long clickNumber;

    @ApiModelProperty(value = "点赞数")
    private Long likeNumber;

    @ApiModelProperty(value = "是否评论")
    private Boolean isComment;

    @ApiModelProperty(value = "被收藏数")
    private Long collectedNumber;

    @ApiModelProperty(value = "评论数")
    private Long commentNumber;

    @ApiModelProperty(value = "用户id,关联b_user.id")
    private Long userId;

    @ApiModelProperty(value = "是否发布(0为草稿，1为发布)")
    private Boolean isRelease;

    @ApiModelProperty(value = "发布时间")
    private Date releaseTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    private Date updateTime;
}
